/**
 * 判断描述对象是否平面对象
 * @returns 
 */
export function isPlainObject(obj) {
    if (typeof obj !== 'object' || obj === null) return false;
    let proto = obj;
    while (Object.getPrototypeOf(proto) !== null) {
        proto = Object.getPrototypeOf(proto);
    }
    return Object.getPrototypeOf(obj) === proto;
    // 平面对象需要 obj.__proto__ === Object.prototype
}
